package com.yrh.bean;

import java.util.List;

public class TOrder {
  private int orderId;
  private String addTime;
  private String updateTime;
  private int userId;
  private String addressDetails;
  private int orderType;
  private List<TOrderDetails> tOrderDetails;//订单详情表
  private String userName;//用户姓名
  private double sum;//总金额

  public TOrder() {
  }

  public TOrder(int orderId, String addTime, String updateTime, int userId, String addressDetails, int orderType, List<TOrderDetails> tOrderDetails, String userName, double sum) {
    this.orderId = orderId;
    this.addTime = addTime;
    this.updateTime = updateTime;
    this.userId = userId;
    this.addressDetails = addressDetails;
    this.orderType = orderType;
    this.tOrderDetails = tOrderDetails;
    this.userName = userName;
    this.sum = sum;
  }

  public int getOrderId() {
    return orderId;
  }

  public void setOrderId(int orderId) {
    this.orderId = orderId;
  }

  public String getAddTime() {
    return addTime;
  }

  public void setAddTime(String addTime) {
    this.addTime = addTime;
  }

  public String getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
  }

  public int getUserId() {
    return userId;
  }

  public void setUserId(int userId) {
    this.userId = userId;
  }

  public String getAddressDetails() {
    return addressDetails;
  }

  public void setAddressDetails(String addressDetails) {
    this.addressDetails = addressDetails;
  }

  public int getOrderType() {
    return orderType;
  }

  public void setOrderType(int orderType) {
    this.orderType = orderType;
  }

  public List<TOrderDetails> gettOrderDetails() {
    return tOrderDetails;
  }

  public void settOrderDetails(List<TOrderDetails> tOrderDetails) {
    this.tOrderDetails = tOrderDetails;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public double getSum() {
    return sum;
  }

  public void setSum(double sum) {
    this.sum = sum;
  }

  @Override
  public String toString() {
    return "TOrder{" +
            "orderId=" + orderId +
            ", addTime='" + addTime + '\'' +
            ", updateTime='" + updateTime + '\'' +
            ", userId=" + userId +
            ", addressDetails='" + addressDetails + '\'' +
            ", orderType=" + orderType +
            ", tOrderDetails=" + tOrderDetails +
            ", userName='" + userName + '\'' +
            ", sum=" + sum +
            '}';
  }
}
